package cn.kgc.admin.api;

import cn.kgc.common.entity.Brand;
import cn.kgc.common.entity.DataPage;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("brand-service")
public interface BrandApi {
    @GetMapping("/brands")
    public DataPage<Brand> listBrand(@RequestParam Integer pageNum,
                                     @RequestParam Integer pageSize);
}
